<include file="public@header"/>
<link href="__TMPL__/public/assets/themes/{:cmf_get_admin_style()}/house.css" rel="stylesheet">
</head>
<body>
  <div class="house-parameter-edit">
    <form action="editForm.html" class="js-ajax-form" method="post" name="editForm">
      <table class="table table-hover table-bordered">
        <tr>
          <td width="100">姓名</td>
          <td><input class="form-control" type="text" name="user_nickname" value="{$info.user_nickname}"></td>
        </tr>
        <tr>
          <td>电话</td>
          <td><input class="form-control" type="text" name="mobile" value="{$info.mobile}"></td>
        </tr>
        <tr>
          <td>公司名称</td>
          <php>
            $company = isset($info['more']['company']) ? $info['more']['company'] : '';
          </php>
          <td><input class="form-control" type="text" name="company" value="{$company}"></td>
        </tr>
        <tr>
          <td>分店名称</td>
          <php>
            $subsidiary = isset($info['more']['subsidiary']) ? $info['more']['subsidiary'] : '';
          </php>
          <td><input class="form-control" type="text" name="subsidiary" value="{$subsidiary}"></td>
        </tr>
      </table>
      <!-- <input type="submit" class="btn btn-primary js-ajax-submit" name="submit" value="添加"> -->
    </form>
  </div>

  <script type="text/javascript">
    function getForm() {
      var formData = {
        user_nickname: editForm.user_nickname.value,
        mobile: editForm.mobile.value,
        company: editForm.company.value,
        subsidiary: editForm.subsidiary.value
      }

      var url = '{:url("edit_post", array("id" => $info.id))}'
      return {
        url: url,
        formData: formData
      }
    }
  </script>
  <script src="__STATIC__/js/admin.js"></script>
</body>
</html>
